import request from '@/utils/request'



const api = { 
    //数据加载
    GetList(query){
        return request({
            url: `/api/BaseData/QmsBaseStation`,
        method: 'GET',
        data: query
    })
},
  //新建
  Create(dataForm)
  {
      return request({
          url: `/api/BaseData/QmsBaseStation`,
          method: 'post',
          data: dataForm,
      })

  },
 //修改
 Update(dataForm)
{
    return   request({
        url: '/api/BaseData/QmsBaseStation/' + dataForm.id,
        method: 'PUT',
        data: dataForm
    })

},

      //删除
      Delete(id)
      {
          return request({
            url: `/api/BaseData/QmsBaseStation/${id}`,
            method: 'DELETE'
        })
  
      },
   
    //编辑加载
    GetInfo(dataForm)
    {    
		return request({
			url: '/api/BaseData/QmsBaseStation/' + dataForm.id,
				method: 'get'
				})	
    },
// 获取工厂三级菜单下拉框
    GetListOption() {
    return request({
        url: `/api/BaseData/QmsBaseStation/GetListOption`,
        method: 'GET'
    })
}
}
export default api;

